Fix CI NU1903: override vulnerable transitive SSH.NET with 2026.0.0 - #20
Merged
Conversation
…ests CI restore fails with NU1903 (warnings-as-errors) because Testcontainers 4.13.0 transitively pulls SSH.NET 2025.1.0, which has a known high-severity vulnerability (GHSA-q939-rpr3-3284, path traversal in ScpClient recursive download, patched in 2026.0.0). No Testcontainers release depends on the patched version yet (4.13.0 is latest), so add a direct SSH.NET 2026.0.0 reference to the four affected integration-test projects to lift the resolved version. Remove once Testcontainers depends on SSH.NET >= 2026.0.0. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
CI
dotnet restorestarted failing on 2026-08-13 with NU1903 (warnings-as-errors): the transitive package SSH.NET 2025.1.0 has a known high-severity vulnerability (GHSA-q939-rpr3-3284, path traversal inScpClientrecursive download; patched in SSH.NET 2026.0.0). It is pulled in by Testcontainers 4.13.0, referenced by the four integration-test projects.What
Testcontainers 4.13.0 is still the latest release, so no upstream bump is available. Instead, each affected test project gets a direct
PackageReferenceto SSH.NET 2026.0.0, lifting the resolved version above the vulnerable one:test/SqlBound.SqlServer.IntegrationTeststest/SqlBound.Npgsql.IntegrationTeststest/SqlBound.MySql.IntegrationTeststest/SqlBound.Cli.IntegrationTestsEach reference carries a comment noting it overrides the vulnerable transitive version and can be removed once Testcontainers depends on SSH.NET >= 2026.0.0.
Verification
dotnet restore— clean, no NU1903dotnet build --no-restore -warnaserror— 0 warnings, 0 errorsdotnet list package --include-transitive)🤖 Generated with Claude Code